package com.dream.cgomall.service.impl;

import com.dream.cgomall.dao.CgoGoodEvaluateDao;
import com.dream.cgomall.entity.CgoGoodEvaluate;
import com.dream.cgomall.service.CgoGoodEvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CgoGoodEvaluateServiceImpl implements CgoGoodEvaluateService {
    @Autowired
    CgoGoodEvaluateDao cgoGoodEvaluateDao;

    @Override
    public Integer findEvaCount(Integer id) {
        return cgoGoodEvaluateDao.findEvalCount(id);
    }

    @Override
    public List<CgoGoodEvaluate> findEvalById(Integer id) {
        return cgoGoodEvaluateDao.findEvalById(id);
    }
}
